<?php

defined('_JEXEC') or die('Restricted access');
?>
<form action="index.php?option=com_console&view=settings" method="post" id="form1" name="form1">
    <table class="table table-striped table-hover">
    <thead>
        <tr>
            <th width="1%"><?php echo '#' ?></th>
            <th width="2%"><?php echo JHtml::_('grid.checkall') ?></th>
            <th width="27%"><?php echo 'Item'?></th>
            <th width="70%"><?php echo 'Value'?></th>
        </tr>
    </thead>
    <tfoot>
        <tr>
            <td colspan="4">
                <?php echo $this->pagination->getListFooter(); ?>
            </td>
        </tr>
    </tfoot>
    <tbody>
        <?php if (!empty($this->items)) : ?>
            <?php foreach ($this->items as $i => $row) :
                $link = JRoute::_('index.php?option=com_console&task=setting.edit&id=' . $row->id);
            ?>
                <tr>
                    <td><?php echo $this->pagination->getRowOffset($i) ?></td>
                    <td><?php echo JHtml::_('grid.id', $i, $row->id) ?></td>
                    <td><a href="<?php echo $link ?>"><?php echo $row->name ?></a></td>
                    <td><?php echo $row->value ?></td>
                </tr>
            <?php endforeach; ?>
        <?php endif; ?>
    </tbody>
    </table>
    <input type="hidden" name="task" value=""/>
    <input type="hidden" name="boxchecked" value="0"/>
    <?php echo JHtml::_('form.token') ?>
</form>

